package com.qwz.example;
/**
* @Description: 策略模式的客户端
* @Package com.qwz.example.Client
* @author Qiuwuzhi
* @date 2019/12/25 13:51
* @version V1.0
*/
public class Client {

    public static void main(String[] args) {
        //选择并创建需要的策略
        Strategy strategy = new NormalCustomerStrategy();
        //创建上下文
        Price content = new Price(strategy);
        //计算报价
        double result = content.quote(1000);
        System.out.println("向客户报价:"+result);

    }
}
